#ifndef LEVEL_H
#define LEVEL_H

#include <QtCore>
#include "commons.h"

class Level
{
public:
    Level(qint32 id, const QString &name);
    ~Level();
    void addPoint(Point *point);
    void addLine(Line *line);
    void clear();
    qint32 getId();
    const QString& getName();
    void setId(qint32 id) {this->id=id;}
    void setName(const QString&name){this->name=name;}
    bool isLocked() {return locked;}
    void setLocked(bool lock) {locked=lock;}
    const QLinkedList<Point*>& getPointsList();
    const QLinkedList<Line*>& getLinesList();

private:
    QLinkedList<Point*> pointsList;
    QLinkedList<Line*> linesList;
    qint32 id;
    QString name;
    bool locked;
};

#endif // LEVEL_H
